//
//  Tools.m
//  Weibo
//
//  Created by wpapple on 16/6/7.
//  Copyright © 2016年 红红火火恍恍惚惚嘿嘿嘿. All rights reserved.
//

#import "Tools.h"

static Tools * _tools = nil;

@implementation Tools

+(instancetype)allocWithZone:(struct _NSZone *)zone{
    @synchronized (self) {
        if (!_tools) {
            _tools = [super allocWithZone:zone];
        }
        
    }
    return _tools;
}

+(instancetype)shareTools{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        if (!_tools) {
            _tools = [[Tools alloc]init];
        }
    });
    return _tools;
}



@end
